package com.example.demo.threadDemo.aCreateThreadName;

/**
 * @Description MyThread01
 * @Author songchuanlong
 * @Date 2025-04-14
 */
public class MyThread01 extends Thread{

    @Override
    public void run() {
        Thread t = Thread.currentThread();
        for (int i = 1; i <=3; i++) {
            System.out.println(t.getName()+":"+i);
        }
    }
}
